package behavioral.command_partten;

/**
 * @ClassName: Receiver
 * @Description: 接收者：封装了具体的操作
 * @Author: liu-hao
 * @Date: 2023-04-11 22:37
 * @Version: 1.0
 **/
public class Receiver {
    public void add() {
        System.out.println("执行加法操作...");
    }

    public void undoAdd() {
        System.out.println("撤销加法操作...");
    }

    public void sub() {
        System.out.println("执行减法操作...");
    }

    public void undoSub() {
        System.out.println("撤销减法操作...");
    }
}
